﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Class2
    {
        static void Main(string[] args)
        {
            // 1 1 2 3 5 8 13 21 34 55

            Console.Write("请输入要显示的菲波那契数的个数：");
            int n = int.Parse(Console.ReadLine());

            int n1 = 1, n2 = 1, temp;

            Console.Write(1+"\t");

            if (n >= 2)
            {
                Console.Write(1 + "\t");
            }

            for (int i = 3; i <= n; i++)
            {
                temp = n1;
                n1 = n2;
                n2 = temp + n2;
                Console.Write(n2 + "\t");
            }

            Console.WriteLine();
        }
    }
}
